cmake_minimum_required(VERSION 3.10)
project(LibrarySystem VERSION 1.0)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# 添加头文件目录
include_directories(${PROJECT_SOURCE_DIR}/include)

# 设置源文件目录
set(SOURCES
    src/main.cpp
    src/Book.cpp
    src/Library.cpp
)

# 设置头文件目录
set(HEADERS
    include/Book.h
    include/Library.h
)

# 创建可执行文件
add_executable(library_system ${SOURCES} ${HEADERS})

# 创建 data 目录
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/data)
